<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.List" %>
<%@page import="wo.bsys.dto.DictionaryDto" %>
<%
%>
<div id="page-wrapper">
	<div class="row">
		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-heading">创建人员</div>
				<div class="panel-body">
					<form role="form" id="bugStaffCreateForm" class="form-horizontal"
						action="${pageContext.request.contextPath}/bug/staff/create"
						method="post" enctype="multipart/form-data">
						<div class="form-group">
							<label class="col-sm-2 control-label">ID</label>
							<div class="col-sm-10">
								<input class="form-control" placeholder="请输入ID" name="id">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">姓名</label>
							<div class="col-sm-10">
								<input class="form-control" placeholder="请输入姓名"
									name="name">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">登录名</label>
							<div class="col-sm-10">
								<input class="form-control" placeholder="请输入姓名"
									name="loginName">
							</div>
						</div>
                        <div class="form-group">
							<label class="col-sm-2 control-label">生日</label>
							<div class="col-sm-10">
								<input class="form-control" name="birthday" type="date">
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-2"></div>
							<div class="col-sm-10">
								<button type="submit" class="btn btn-primary">提交</button>
								<button type="reset" class="btn btn-default">重置</button>
								<button type="button" class="btn btn-warning"
									onclick="location.href='${pageContext.request.contextPath}/'">返回</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
		<!-- /.panel-body -->
	</div>
	<script type="text/javascript">
	$(document).ready(function () {
    	// 设置各字段的验证规则
    	var fields = {};
    		   	    		   	    	
  		// 将验证规则应用到表单的字段中
		$('#bugStaffCreateForm').bootstrapValidator({
            // 默认错误消息
			message: '输入值不合法',
			// 设置验证成功或者失败的图标
            feedbackIcons: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            },
            // 设置不同字段的验证规则和错误信息
            fields: fields
        });
    });	
	</script>
</div>